package lq.auth.studyauth.properties;

import lombok.Data;

/**
 * @program: cloud-study
 * @description: 配置类
 * 改善以前代码写死的情况
 * clients.inMemory()
 *                 .withClient("study")
 *                 .secret(passwordEncoder.encode("123456"))
 *                 .authorizedGrantTypes("password", "refresh_token")
 *                 .scopes("all");
 * @author: LQ
 * @create: 2020-09-24 15:08
 */

@Data
public class StudyClientsProperties {
    /**
     * 对应client_id
     */
    private String client;
    /**
     * 对应client_secret
     */
    private String secret;
    /**
     * 当前令牌支持的认证类型
     */
    private String grantType = "password,authorization_code,refresh_token";

    /**
     * scope对应的默认值
     */
    private String scope = "all";
}
